﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace HotelManagement.PL.FunctionControl
{
	public partial class GoodsWarnUserControl : BaseUserControl
	{
		#region Constructor
		public GoodsWarnUserControl()
		{
			InitializeComponent();
		}
		#endregion

		#region Public Method
		/// <summary>
		/// set datgridview's datasource
		/// </summary>
		/// <param name="datSource"></param>
		public void SetDataSource(DataTable datSource)
		{
			if (dgvGoods == null || datSource == null || datSource.Columns.Count == 0)
			{
				return;
			}
            dgvGoods.AutoGenerateColumns = false;
			dgvGoods.DataSource = datSource;
		}
		#endregion
	}
}
